package com.manage.platform.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * YWD
 * 2025/9/23
 */
@Accessors(chain = true)
@Data
public class TaskTreePartOneVo implements Serializable {

    @Schema(description = "任务ID")
    private Long id;

    @Schema(description = "父任务ID(0为顶级任务)")
    private Long parentId;

    @Schema(description = "任务名称")
    private String name;

    @Schema(description = "任务层级(1=一级,2=二级,3=三级,4=四级,5=五级)")
    private Integer level;

    //下级任务列表
    @Schema(description = "下级任务列表")
    List<TaskTreePartOneVo> children;

}